//
//  PingTaskResult.m
//  iOSLaboratory
//
//  Created by yangshansi on 2017/4/20.
//  Copyright © 2017年 WiLL. All rights reserved.
//

#import "PingTaskResult.h"

@implementation PingTaskResult

- (NSString *)output
{
    NSMutableString *buff = [NSMutableString new];
    
    [buff appendFormat:@"%@/%@ ", self.hostName, self.ip];
    [buff appendFormat:@"Send/Recv %ld/%ld ", self.sendCount, self.recvCount];
    [buff appendFormat:@"avgTime=%.3f ms", self.aveTime*1000];
    
    return [NSString stringWithString:buff];
}

@end
